import request from '@/utils/request'

// 查询erp产品统一下架列表
export function listProductUnifiedTakedown(query) {
  return request({
    url: '/gather/gather/productUnifiedTakedown/list',
    method: 'get',
    params: query
  })
}

// 查询erp产品统一下架详细
export function getProductUnifiedTakedown(id) {
  return request({
    url: '/gather/gather/productUnifiedTakedown/' + id,
    method: 'get'
  })
}

// 新增erp产品统一下架
export function addProductUnifiedTakedown(data) {
  return request({
    url: '/gather/gather/productUnifiedTakedown',
    method: 'post',
    data: data
  })
}

// 修改erp产品统一下架
export function updateProductUnifiedTakedown(data) {
  return request({
    url: '/gather/gather/productUnifiedTakedown',
    method: 'put',
    data: data
  })
}

// 删除erp产品统一下架
export function delProductUnifiedTakedown(id) {
  return request({
    url: '/gather/gather/productUnifiedTakedown/' + id,
    method: 'delete'
  })
}

// 执行下架
export function executeProductTakedown(query) {
  return request({
    url: '/gather/gather/productUnifiedTakedown/executeProductTakedown',
    method: 'get',
    params: query
  })
}
